package com.wit.dao;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import com.wit.po.Company;

/**
 * 
 * @author dongtsh
 * class:CompanyDao<Interface>
 * use:privode the interface for add/delete/modify/inquire company
 *
 */

public interface CompanyDao {
	
	public boolean addCompany(Company company);
	
	public boolean deleteCompany(Company company);
	
	public boolean modifyCompany(Company company);
	
	public Company findCompanyByIdenfier(String companyNum);
	
	public List<Company> findCompanyByCondition(DetachedCriteria dc, Integer startRecord, Integer pageSize);
	
	public Integer findCompanyCount(DetachedCriteria dc);

}
